FROM mongo:4.0

MAINTAINER guox@goodrain.com

ADD sql/*.js /docker-entrypoint-initdb.d/

EXPOSE 27017

VOLUME /data/db /data/configdb

ENV MONGO_INITDB_ROOT_USERNAME admin
ENV MONGO_INITDB_ROOT_PASSWORD password 
ENV MONGO_INITDB_DATABASE mydb